package cn.tedu._10springaop.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 */
public class TestCalculator {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu._10springaop");
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(10,20);
        calculator.div(20,10);
        calculator.mul(10,20);
        calculator.sut(20,10);


    }
}
